
<!--顶部退出-->
<div style='position:fixed;top:0px;width:100%'>
	<div class='nav_div' style='font-size:12px;text-align:right;background:#fff'>
		<span style='margin-right:20px'>当前用户：<a href="after_con_admin_set.html" style='text-decoration:none' id='after_user'></a></span>
		<span style='margin-right:20px' id='after_exit'>退出</span>
	</div>
</div>
<script>
	if(!sessionStorage.admin_user || !sessionStorage.admin_token1){
		location.replace('after_login.html');
	}

	var admin_user = sessionStorage.admin_user;

	$('#after_user').text(sessionStorage.admin_user);

	$('#after_exit').click(function(){
		if(confirm('确认退出？')){
			sessionStorage.admin_user = '';
			sessionStorage.admin_token1 = '';
			location.reload();
		}
	});

</script>



<!--底部导航与显示页面-->
<div style='height:50px'></div>
<div style='position:fixed;bottom:0px;width:100%'>
	<div class='nav_div' style='margin:0 auto'>
		<select style='width:100%' id="bottom_nav">

		</select>
	</div>
</div>
<script>


	var option_str = '';
	option_str += "<option value='after_con_index.html'>首页</option>";
	if(admin_user == 'admin'){
		option_str += "<option value='after_con_public.html'>公共数据库设置</option>";
		option_str += "<option value='after_con_server.html'>服务器管理</option>";
		option_str += "<option value='after_con_opencity.html'>城市开通管理</option>";
		option_str += "<option value='after_con_admin.html'>管理成员</option>";
	}
	option_str += "<option value='after_con_area.html'>小区管理</option>";
	option_str += "<option value='after_con_msg.html'>通知管理</option>";

	$('#bottom_nav').html(option_str);

	$('#bottom_nav').change(function(){
		var val = $(this).find('option:selected').val();
		location.href = val;
	});
	var uri = document.URL.substring(document.URL.lastIndexOf('/')+1);
	$('#bottom_nav').val(uri);
</script>


